<template>
  <div>
    <Demo v-if="flag"></Demo>

    <button @click="flag = !flag">销毁</button>
  </div>
</template>

<script>
import Demo from "./components/Demo.vue";
export default {
  components: {
    Demo,
  },
  data() {
    return {
      flag: true,
    };
  },
};
</script>

<style scoped>
</style>